//this class use boost library mutex to implement muteximpl interface
//andycai_sc 2011-04-29

#ifndef BOOSTMUTEXIMPL_H
#define BOOSTMUTEXIMPL_H

#include <boost/thread.hpp>
#include "GParallel/GMutexImpl.h"

class BoostMutexImpl : public GMutexImpl
{
public:
    BoostMutexImpl();
    virtual ~BoostMutexImpl();

    void lockImpl();
    void unlockImpl();

private:
    boost::mutex  m_mutex;
};

#endif // BOOSTMUTEXIMPL_H
